<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
    <script src="/layui/jquery-3.5.1.min.js"></script>
    <script src="/layui/layui.js" charset="utf-8"></script>
</head>
<body>
<form class="layui-form" action="" lay-filter="example">
    <div class="layui-form-item">
        <label class="layui-form-label">删除人</label>
        <div class="layui-input-block">
            <input type="text" name="person" lay-verify="title" autocomplete="off"  class="layui-input"  disabled >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">删除时间</label>
        <div class="layui-input-block">
            <input th:value="${#dates.format(del.time,'yyyy-MM-dd hh:mm:ss')}" disabled type="text" name="time" lay-verify="title" autocomplete="off"  class="layui-input" >
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">删除原因</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" class="layui-textarea" name="reason" disabled></textarea>
        </div>
    </div>
</form>

<script th:inline="javascript">
    layui.use(['form', 'layedit', 'laydate'], function() {
        var form = layui.form


        layui.$(function () {
            form.val('example', {
                "person": [[${del.staff.name}]] // "name": "value"
                ,"reason": [[${del.reason}]]
            });
        })

    })
</script>
</body>
</html>